<?php

use App\Models\Answer;
use App\Models\Question;
use Illuminate\Database\Seeder;

class AnswerSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $question = Question::find(1);
        factory(Answer::class)->times(10)->create(['question_id' => $question->id]);
    }
}
